package com.woyou.bean;

/**
 * 下单时的SubGoods模型
 * 
 * @author 荣
 * 
 */
public class OrderSubGoodsItem extends SuperBean{
	private static final long serialVersionUID = 1L;

	/**
	 * 菜品编号
	 */
	private String gId;

	/**
	 * 菜品名称
	 */
	private String gName;

	/**
	 * 选择数量
	 */
	private int qty;

	/**
	 * 金额(计算方式:qty*商品单价)
	 */
	private float price;

	public String getgName() {
		return gName;
	}

	public void setgName(String gName) {
		this.gName = gName;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public String getgId() {
		return gId;
	}

	public void setgId(String gId) {
		this.gId = gId;
	}

	public int getQty() {
		return qty;
	}

	public void setQty(int qty) {
		this.qty = qty;
	}

	public OrderSubGoodsItem(SubGoods subGoods) {
		this.gId = subGoods.getgId();
		this.qty = subGoods.getChosenNum();
	}

	public OrderSubGoodsItem() {
		super();
	}
	
}
